//
//  BWAddressModel.swift
//  CommerceSwift
//
//  Created by xiongbenwan on 2020/4/22.
//  Copyright © 2020 xiongbenwan. All rights reserved.
//

import UIKit

class BWAddressModel: Codable {
    
    //标题
    var name: String?
    //标签
    var label: String?
    //地区编码
    var value: String?
    //城市编码
    var cityCode:  String?
    //省下级市数据
    var children: [BWAddressCityModel] = [BWAddressCityModel]()
}

//市model
class BWAddressCityModel: Codable {
    
    //标题
    var name: String?
    //标签
    var label: String?
    //地区编码
    var value: String?
    //城市编码
    var cityCode:  String?
    //市下级区数据
    var children: [BWAddressAreaModel] = [BWAddressAreaModel]()
}

//区model
class BWAddressAreaModel: Codable {
    //标题
    var name: String?
    //标签
    var label: String?
    //地区编码
    var value: String?
    //城市编码
    var cityCode:  String?
    
}
